﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ListtypeFilter>" %>
<%@ Import Namespace="SmartIMS.Mvc.Entities" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Detail
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm("Update","Listtype")) {%>
        <%: Html.HiddenFor(model => model.NameFilter) %>
        <%: Html.HiddenFor(model => model.Page) %>
        <%: Html.HiddenFor(model => model.NumerRecordPerPage) %>
        <%: Html.HiddenFor(model => model.Detail.ListtypeId)%>

        <%: Html.ValidationSummary(true) %>
        
        <table border="0" class="form_table1" cellpadding="0" width="100%" cellspacing="0">
        <col width="25%" /><col width="25%" /><col width="25%" /><col width="25%" />
        <tr>
            <td class="normal_title" colspan="4" >Chi tiet danh mục</td>
        </tr>
        <tr>
            <td class="normal_error_message" colspan="4">
                <%=ViewData["ErrorMessage"] %>
            </td>
        </tr>
        <tr>
            <td class="normal_label">
                <%: Html.LabelFor(model => model.Detail.Code)%>
            </td>
            <td colspan="2">
                <%: Html.TextBoxFor(model => model.Detail.Code)%>
                <%: Html.ValidationMessageFor(model => model.Detail.Code)%>
            </td>
        </tr>
        <tr>
            <td class="normal_label">
                <%: Html.LabelFor(model => model.Detail.Name)%>    
            </td>
            <td colspan="2">
                <%: Html.TextBoxFor(model => model.Detail.Name)%>
                <%: Html.ValidationMessageFor(model => model.Detail.Name)%>    
            </td>
        </tr>     
        <tr>
            <td class="normal_label">
                <%: Html.LabelFor(model => model.Detail.Group)%>    
            </td>
            <td colspan="2">
                <%: Html.TextBoxFor(model => model.Detail.Group)%>
                <%: Html.ValidationMessageFor(model => model.Detail.Group)%>    
            </td>
        </tr>
        <tr>
            <td class="normal_label">
                <%: Html.LabelFor(model => model.Detail.Note)%>    
            </td>
            <td colspan="2">
                <%: Html.TextBoxFor(model => model.Detail.Note)%>
                <%: Html.ValidationMessageFor(model => model.Detail.Note)%>     
            </td>
        </tr>
        <tr>
            <td class="normal_label">
                <%: Html.LabelFor(model => model.Detail.Directory)%>    
            </td>
            <td colspan="2">
                <%: Html.TextBoxFor(model => model.Detail.Directory)%>
                <%: Html.ValidationMessageFor(model => model.Detail.Directory)%>   
            </td>
        </tr>
        <tr>
            <td class="normal_label">
                <%: Html.LabelFor(model => model.Detail.Order)%> 
            </td>
            <td colspan="2">
                <%: Html.TextBoxFor(model => model.Detail.Order)%>
                <%: Html.ValidationMessageFor(model => model.Detail.Order)%>    
            </td>
        </tr>
        <tr>
            <td class="normal_label">
                <%: Html.LabelFor(model => model.Detail.Status)%>   
            </td>
            <td colspan="2">
                <%: Html.CheckBoxFor(model => model.Detail.Status)%>
                <%: Html.ValidationMessageFor(model => model.Detail.Status)%>    
            </td>
        </tr>               
        </table>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td colspan="5" align="left">
                    <input type="button" value="Update" class="button_save" onclick="$('form').attr('action', '/Listtype/Detail/Update');$('form').submit(this.submit);" />
                    <input type="button" value="Back" class="button_back" onclick="$('form').attr('action', '/Listtype/List');$('form').submit(this.submit);" />
                </td>
            </tr>                         
        </table>

    <% } %>

</asp:Content>

